package com.travel.controller.admin;

import com.travel.pojo.vo.DashboardVO;
import com.travel.service.IOrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("adminDashboardController")
@RequestMapping("/dashboard")
@RequiredArgsConstructor
public class DashboardController {

    private final IOrderService orderService;

    @GetMapping
    public DashboardVO getDashboard(){
        return orderService.getDashboard();
    }
}
